package b面向对象.day4.作业;

public class Market {
    //int[]arr=new int[10];
    //默认值为null
    Dog[] dogs=new Dog[10];

    //初始化数组中的10只狗
    public Market() {
        for(int i=0;i<dogs.length;i++){
            dogs[i]=new Dog("狗"+(i+1));
        }
    }
}
